<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
	dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>"
			type="text/css" />
		<link rel="stylesheet"
			href="<c:url value='/scripts/themes/base/jquery.ui.all.css'/>"
			type="text/css" />


	</head>
	<body>
		<div id="headBar" class="head_content">
			<div class="action-bar mainHead">
				<span class="sysiconBtn addorder" onclick='location.href="mb_attr_add.html"'>新增注册项</span>&nbsp;
			</div>
			<div class="headBox mainHead">
				<div class="headContent">
					<div class="gridlist-head">
						<div class="span-9" style="text-align: center;">
							注册项名称
						</div>
						<div class="span-4">
							注册项类型
						</div>
						<div class="span-1">
							编辑
						</div>
						<div class="span-1">
							删除
						</div>
						<div class="span-1">
							显示
						</div>
					</div>
				</div>
			</div>
		</div>
		<div id="main" class="main_content">

			<div class="finder" id="member_reg_attr">
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">姓名:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<input readonly="readonly" name="name" type="text">
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;">
						</div>
					</div>
				</div>
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">性别:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<input readonly="readonly" name="7" value="男" type="radio" />
											<label>
												男
											</label>
											<input name="7" value="女" type="radio" />
											<label>
												女
											</label>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;" />

						</div>
					</div>
				</div>
				<div class="row member_reg_attr">
					<input name="attr_order[]" value="5" type="hidden">
						<div class="row-line" style="padding-bottom: 4px;">
							<div class="span-9">
								<table style="cursor: move;" width="100%">
									<tbody>
										<tr>
											<td width="130">
												<span
													style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">固定电话:</span>
											</td>
											<td style="white-space: nowrap; vertical-align: top;">
												<input readonly="readonly" name="tel" type="text">
											</td>
										</tr>
									</tbody>
								</table>
							</div>
							<div class="span-4">
								<span class="quiet"
									style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
							</div>
							<div class="span-1 textcenter">
								&nbsp;
							</div>
							<div class="span-1 textcenter">
								&nbsp;
							</div>
							<div class="span-1 textcenter">
								<img src="<c:url value="/images/transparent.gif"/>"
									class="imgbundle"
									style="width: 24px; height: 16px; background-position: 0pt -2519px;" />

							</div>
						</div>
				</div>
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">出生日期:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<input readonly="readonly" value="日期选择器" type="text">
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;" />
						</div>
					</div>
				</div>
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">地区:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<select>
												<option>
													地区选择项
												</option>
											</select>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;" />
						</div>
					</div>
				</div>
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">移动电话:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<input readonly="readonly" name="mobile" type="text">
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;" />
						</div>
					</div>
				</div>
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">联系地址:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<input readonly="readonly" name="addr" type="text">
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;" />
						</div>
					</div>
				</div>
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">邮编:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<input readonly="readonly" name="zip" type="text">
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;" />
						</div>
					</div>
				</div>
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">安全问题:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<input readonly="readonly" name="pw_question" type="text">
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;" />
						</div>
					</div>
				</div>
				<div class="row member_reg_attr">

					<div class="row-line" style="padding-bottom: 4px;">
						<div class="span-9">
							<table style="cursor: move;" width="100%">
								<tbody>
									<tr>
										<td width="130">
											<span
												style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">回答:</span>
										</td>
										<td style="white-space: nowrap; vertical-align: top;">
											<input readonly="readonly" name="pw_answer" type="text">
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="span-4">
							<span class="quiet"
								style="font-weight: normal; padding: 0pt 5px;">系统默认</span>
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							&nbsp;
						</div>
						<div class="span-1 textcenter">
							<img src="<c:url value="/images/transparent.gif"/>"
								class="imgbundle"
								style="width: 24px; height: 16px; background-position: 0pt -2519px;" />
						</div>
					</div>
				</div>
				<c:forEach var="attr" items="${memberAttrs}" varStatus="attrIndex">
					<div class="row member_reg_attr">

						<div class="row-line" style="padding-bottom: 4px;">
							<div class="span-9">
								<table style="cursor: move;" width="100%">
									<tbody>
										<tr>
											<td width="130">
												<span	style="width: 130px; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden;">${attr.attrName}</span>
											</td>
											<td style="white-space: nowrap; vertical-align: top;">
												<input readonly="readonly" class="x-input inputstyle"
													type="text">
											</td>
										</tr>
									</tbody>
								</table>
							</div>
							<div class="span-4">
								<span class="quiet"
									style="font-weight: normal; padding: 0pt 5px;">${attr.attrTyname}</span>
							</div>
							<div class="span-1 textcenter">
								<a class="i" href="mb_attr_edit.html?attrId=${attr.attrId }"><img
										src="<c:url value="/images/transparent.gif"/>" alt="编辑"
										class="imgbundle"
										style="width: 16px; height: 16px; background-position: 0pt -284px;"
										border="0">
								</a>
							</div>
							<div class="span-1 textcenter">
								<span onclick="deleteAttr(this,${attr.attrId })" style="cursor: pointer;"><img
										src="<c:url value="/images/transparent.gif"/>" alt="删除"
										class="imgbundle"
										style="width: 16px; height: 16px; background-position: 0pt -214px;"
										border="0">
								</span>
							</div>
							<div class="span-1 textcenter">
								<c:if test="${attr.showOn}">
								<img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle"
										style="width: 24px; height: 16px; background-position: 0pt -2519px;" /></c:if>
								<c:if test="${!attr.showOn}">
								<img style="width: 24px; height: 16px; background-position: 0pt -901px;" class="imgbundle" src="<c:url value="/images/transparent.gif"/>"/>
								</c:if>
							</div>
						</div>
					</div>
				</c:forEach>
			</div>


		</div>
		<div id="footBar" class="foot_content">

		</div>



		<script type="text/javascript"
			src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>


		<%@ include file="/jsp/admin/common/messages.jsp"%>


		<script type="text/javascript">
	function deleteAttr(obj,attrId) {
		if (!confirm("确定删除吗？")) {
			return;
		}
		var url = "mb_attr_delete.html";
		var params = {
			"attrId" : attrId
		};

		$.getJSON(url, params, 
			function callback(data) 
			{
				var flag = data.successFlag;
				var returnString='';
					if(flag){
						returnString = "删除成功";
						$(obj).parent().parent().parent().remove();
					}else{
						returnString ="出错,请重试";
					}
					showCallbackResult(returnString);			
				
			}
		);
		
	}
</script>


	</body>


</html>

